
import { Base } from '../utils/base.js';

class StoreOwnerRank extends Base {
    constructor() {
        super();
    }

    /**
     * 获取销售额排行
     */
    getStoreOwnerSaleRank(callBack) {
        var params = {
            url: 'store-owner-rank/sale',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }
    /**
     * 获取新用户排行
     */
    getStoreOwnerUserRank(callBack) {
        var params = {
            url: 'store-owner-rank/user',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }
    /**
     * 销售量
     */
    getStoreOwnerProductRank(callBack) {
        var params = {
            url: 'store-owner-rank/product',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }

    /**
     * 待提现金额列表
     */
    getStoreOwnerMoneyRank(callBack) {
        var params = {
            url: 'store-owner-rank/money',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }

    // 获取未裂变信息
    getStoreStaffFissionRank(callBack) {
        var params = {
            url: 'store-user-fission',
            type: 'GET',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }
    
    getTeamOwnerProductRank(callBack){
        var params = {
            url: 'team-owner-rank/product',
            sCallBack: function (res) {
                callBack && callBack(res);
            }
        }
        this.request(params);
    }
}

export { StoreOwnerRank };
